setfenv(1, require'winapi.oo')

ImageList = class(Object)

function ImageList:__init(t)
	update(self, t)
	self.list = ImageList_Create(self)
end

function ImageList.__meta:__index(k)
	if isint(k) then
		if self:get
	end
end

function ImageList.__meta:__newindex(k,v)
	if isinit(k) then

	end
end

function ImageList:get_size() return ImageList_GetImageCount(self.list) end
function ImageList:set_size(count) return ImageList_SetImageCount(self.list, count) end

function ImageList:set_bgcolor(color) return ImageList_SetBkColor(self.list, color) end
function ImageList:get_bgcolor() return ImageList_GetBkColor(self.list) end

function ImageList:add(image, mask) return ImageList_Add(self.list, image, mask) end

function ImageList:set_overlay(image, overlay) return ImageList_SetOverlayImage(self.list, image, overlay) end

function ImageList:add_icon(himl, hicon) return ImageList_ReplaceIcon(self.list, -1, hicon) end
function ImageList:replace_icon(i, hicon) return ImageList_ReplaceIcon(self.list, i, hicon) end

if not ... then
local m = ImageList()
end
